import request from '@/utils/request';

export function queryRoleList(params) {
  return request({
    url: '/queryRoleList',
    method: 'get',
    params: params
  })
}

export function addRole(data) {
  return request({
    url: '/addRole',
    method: 'post',
    data: data
  })
}

export function deleteRole(params) {
  return request({
    url: '/deleteRole',
    method: 'get',
    params: params
  })
}

export function updateRole(data) {
  return request({
    url: '/updateRole',
    method: 'post',
    data: data
  })
}

export function queryOneRole(params) {
  return request({
    url: '/queryOneRole',
    method: 'get',
    params: params
  })
}